<template>
	<view>
		<v587-color-picker  :color="sizeColor" @onColorChange="onColorChange"/> 
		<view style="margin: 20rpx 30rpx;">
			<u-button type="primary" size="large" shape="circle" color="#FFB850" text="确认" @click="backPage"></u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// customStyle:{
				// 	margin:'20rpx 30rpx'
				// },
				sizeColor:'#ffffff'
			}
		},
		methods: {
			onColorChange(val){
				this.sizeColor=val
			},
			backPage(){
				uni.$emit('updateData', this.sizeColor)
				uni.navigateBack({
					delta: 1
				})
			}
		}
		 
	}
</script>

<style>

</style>
